<!doctype html>
<html>

<head>
    <meta charset="utf-8">

    {include file="public/include"}
</head>

<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <title>最新{$obj.type_name}-推荐{$obj.type_name}-第{$param.page}页筛选 - {$maccms.site_name}</title>
    <meta name="keywords" content="{$obj.type_key}" />
    <meta name="description" content="{$obj.type_des}" />
    <?php
    $navi="nav-menu-item-name-white";
    $navspan="nav-menu-item-name";
    ?>
    {include file=public/include}
</head>

<body class="library page">
    {include file="public/header"}
    <!-- 头部 -->
    <main id="main" class="wrapper">
        <div class="content">

            <div class="page-heading">
                <h1 class="page-title">影片库</h1>
                <div class="box">
                    <div class="module-blocklist module-player-list"
                        style="padding: 35px;border-radius: 10px;margin-bottom: 20px;">
                        <h3 style="text-align: center;">广告位04</h3>
                    </div> <!-- 筛选页广告位 -->
                    <div class="library-box library-box-first scroll-box ovauto">
                        <div class="scroll-content">
                            <div class="library-list">
                                <?php
                                $top_id_arr = [1,2,3,4];
                                $top_type = false;
                                if(in_array($param['id'],$top_id_arr)){
                                    $top_type = true;
                                    $topid = $param['id'];
                                }else{
                                    $topid = $obj['type_pid'];
                                }
                                ?>
                                {maccms:type ids="1,2,3,4" order="asc" by="sort" id="vo1" key="key1"}
                                <a href="{:mac_url_type($vo1,[],'show')}" class="library-item {if $topid==$key1} selected{/if} " title="{$vo1.type_name}片库"> {$vo1.type_name}片库</a>
                                {/maccms:type}
                            </div>
                        </div>
                    </div>
                    <div class="library-box scroll-box">
                        <div class="scroll-content">
                            <a class="library-item library-item-first {if $top_type}selected {/if} " href="{:mac_url_type($obj['type_1'],[],'show')}">全部类型</a>
                            <div class="library-list">
                                {maccms:type parent="'.$topid.'" order="asc" by="sort" id="vo2" key="key2"}
                                <a class="library-item <?php if ($param['id']==$vo2['type_id']){?> selected<?php } ?>"
                                    href="{:mac_url_type($vo2,[],'show')}">{$vo2.type_name}</a>
                                {/maccms:type}
                            </div>
                        </div>
                    </div>
                    <div class="library-box scroll-box">
                        <div class="scroll-content">
                            <a class="library-item library-item-first  {if condition="$param['class'] eq ''"}  selected{/if}"
                                href="{:mac_url_type($obj,['class'=>'','lang'=>$param['lang'],'year'=>$param['year'],'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'area'=>$param['area'],'order'=>$param['order'],'by'=>$param['by'] ],'show')}">全部剧情</a>
                            <div class="library-list">
                                {empty name="$obj.type_extend.class"}
                                {maccms:foreach name=":explode(',',$obj.parent.type_extend.class)" id="vo2" key="key2"}
                                <a class="library-item {if condition=" $param['class'] eq $vo2"}selected{/if} " href="
                                    {:mac_url_type($obj,['class'=>$vo2,'lang'=>$param['lang'],'year'=>$param['year'],'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'area'=>$param['area'],'order'=>$param['order'],'by'=>$param['by']
                                    ],'show')}"
                                    title="{$vo2}">{$vo2}</a>
                                {/maccms:foreach}
                                {else /}
                                {maccms:foreach name=":explode(',',$obj.type_extend.class)" id="vo2" key="key2"}
                                <a class="library-item  {if condition=" $param['class'] eq $vo2"}selected{/if} " href="
                                    {:mac_url_type($obj,['class'=>$vo2,'lang'=>$param['lang'],'year'=>$param['year'],'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'area'=>$param['area'],'order'=>$param['order'],'by'=>$param['by']
                                    ],'show')}" title="{$vo2}">{$vo2}</a>
                                {/maccms:foreach}
                                {/empty}
                            </div>
                        </div>
                    </div>
                    <div class="library-box scroll-box">
                        <div class="scroll-content">
                            <a class="library-item library-item-first {if condition="$param['area'] eq ''"}  selected{/if}"
                                href="{:mac_url_type($obj,['area'=>'','lang'=>$param['lang'],'year'=>$param['year'],'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>$param['class'],'order'=>$param['order'],'by'=>$param['by'] ],'show')}">全部地区</a>
                            <div class="library-list">
                                {empty name="$obj.type_extend.area"}
                                {maccms:foreach name=":explode(',',$obj.parent.type_extend.area)" id="vo2" key="key2"}
                                <a class="library-item {if condition="$param['area'] eq $vo2"}selected{/if} " href="{:mac_url_type($obj,['area'=>$vo2,'lang'=>$param['lang'],'year'=>$param['year'],'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>$param['class'],'order'=>$param['order'],'by'=>$param['by'] ],'show')}"
                                    title="{$vo2}">{$vo2}</a>
                                    {/maccms:foreach}
                                {else /}
                                    {maccms:foreach name=":explode(',',$obj.type_extend.area)" id="vo2" key="key2"}
                                    <a class="library-item  {if condition="$param['area'] eq $vo2"}selected{/if} " href="{:mac_url_type($obj,['area'=>$vo2,'lang'=>$param['lang'],'year'=>$param['year'],'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>$param['class'],'order'=>$param['order'],'by'=>$param['by'] ],'show')}" title="{$vo2}">{$vo2}</a>
                                    {/maccms:foreach}
                                {/empty}
                            </div>
                        </div>
                    </div>
                    <div class="library-box scroll-box">
                        <div class="scroll-content">
                            <a class="library-item library-item-first {if condition="$param['lang'] eq ''"}  selected{/if}"
                                href="{:mac_url_type($obj,['area'=>$param['area'],'lang'=>'','year'=>$param['year'],'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>$param['class'],'order'=>$param['order'],'by'=>$param['by'] ],'show')}">全部语言</a>
                            <div class="library-list">
                                {empty name="$obj.type_extend.lang"}
                                {maccms:foreach name=":explode(',',$obj.parent.type_extend.lang)" id="vo2" key="key2"}
                                <a class="library-item {if condition="$param['lang'] eq $vo2"}selected{/if} " href="{:mac_url_type($obj,['area'=>$param['area'],'lang'=>$vo2,'year'=>$param['year'],'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>$param['class'],'order'=>$param['order'],'by'=>$param['by'] ],'show')}"
                                    title="{$vo2}">{$vo2}</a>
                                    {/maccms:foreach}
                                {else /}
                                    {maccms:foreach name=":explode(',',$obj.type_extend.lang)" id="vo2" key="key2"}
                                    <a class="library-item {if condition="$param['lang'] eq $vo2"}selected{/if}" href="{:mac_url_type($obj,['area'=>$param['area'],'lang'=>$vo2,'year'=>$param['year'],'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>$param['class'],'order'=>$param['order'],'by'=>$param['by'] ],'show')}" title="{$vo2}">{$vo2}</a>
                                    {/maccms:foreach}
                                {/empty}
                            </div>
                        </div>
                    </div>
                    <div class="library-box scroll-box">
                        <div class="scroll-content">
                            <a class="library-item library-item-first  {if condition="$param['year'] eq ''"}  selected{/if}"
                                href="{:mac_url_type($obj,['area'=>$param['area'],'lang'=>$param['lang'],'year'=>'','level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>$param['class'],'order'=>$param['order'],'by'=>$param['by'] ],'show')}">全部时间</a>
                            <div class="library-list">
                                {empty name="$obj.type_extend.year"}
                                {maccms:foreach name=":explode(',',$obj.parent.type_extend.year)" id="vo2" key="key2"}
                                <a class="library-item {if condition="$param['year'] eq $vo2"} selected{/if}" href="{:mac_url_type($obj,['area'=>$param['area'],'lang'=>$param['lang'],'year'=>$vo2,'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>$param['class'],'order'=>$param['order'],'by'=>$param['by'] ],'show')}"
                                    title="{$vo2}">{$vo2}</a>
                                {/maccms:foreach}
                                {else /}
                                {maccms:foreach name=":explode(',',$obj.type_extend.year)" id="vo2" key="key2"}
                                <a class="library-item {if condition=" $param['year'] eq $vo2"} selected{/if}"
                                    href="{:mac_url_type($obj,['area'=>$param['area'],'lang'=>$param['lang'],'year'=>$vo2,'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>$param['class'],'order'=>$param['order'],'by'=>$param['by'] ],'show')}"
                                    title="{$vo2}">{$vo2}</a>
                                {/maccms:foreach}
                                {/empty}
                            </div>
                        </div>
                    </div>
                    <div class="library-box scroll-box">
                        <div class="scroll-content">
                            <a class="library-item library-item-first  {if condition="$param['letter'] eq ''"}  selected{/if}"
                                href="{:mac_url_type($obj,['area'=>$param['area'],'lang'=>$param['lang'],'year'=>$param['year'],'level'=>$param['level'],'letter'=>'','state'=>$param['state'],'tag'=>$param['tag'],'class'=>$param['class'],'order'=>$param['order'],'by'=>$param['by'] ],'show')}">字母查找</a>
                            <div class="library-list">
                                {maccms:foreach name=":explode(',','A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,0~9')" id="vo2" key="key2"}
                                <a class="library-item  {if condition="$param['letter'] eq $vo2" }selected {/if}"
                                        href="{:mac_url_type($obj,['area'=>$param['area'],'lang'=>$param['lang'],'year'=>$param['year'],'level'=>$param['level'],'letter'=>$vo2,'state'=>$param['state'],'tag'=>$param['tag'],'class'=>$param['class'],'order'=>$param['order'],'by'=>$param['by'] ],'show')}">{$vo2}</a>
                                {/maccms:foreach}
                            </div>
                        </div>
                    </div>
                    <div class="library-box scroll-box">
                        <div class="scroll-content">
                            <div class="library-list">
                                <a href="{:mac_url_type($obj,['area'=>$param['area'],'lang'=>$param['lang'],'year'=>$param['year'],'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>$param['class'],'order'=>$param['order'],'by'=>'time' ],'show')}" class="library-item {if condition="$param.by eq '' || $param.by eq 'time'"}selected{/if}"
                                    title="按时间排序">时间排序</a>
                                <a href="{:mac_url_type($obj,['area'=>$param['area'],'lang'=>$param['lang'],'year'=>$param['year'],'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>$param['class'],'order'=>$param['order'],'by'=>'hits' ],'show')}" class="library-item {if condition="$param.by eq 'hits'"}selected{/if}"
                                    title="按人气排序">人气排序</a>
                                <a class="library-item library-item-first {if condition="$param.by eq 'score'"}selected{/if}"
                                    href="{:mac_url_type($obj,['area'=>$param['area'],'lang'=>$param['lang'],'year'=>$param['year'],'level'=>$param['level'],'letter'=>$param['letter'],'state'=>$param['state'],'tag'=>$param['tag'],'class'=>$param['class'],'order'=>$param['order'],'by'=>'score' ],'show')}" title="按评分排序">评分排序</a>
                            </div>
                        </div>
                    </div>
                    <div class="library-box">
                        <h2 class="library-stat">影片库为你选出<span class="important mac_total"></span>部影片</h2>


                    </div>
                </div>
                <!-- 筛选 -->
            </div>
            <div class="module-blocklist module-player-list"
                style="padding: 35px;border-radius: 10px;margin-bottom: 20px;">
                <h3 style="text-align: center;">广告位05</h3>
            </div> <!-- 全局广告位 -->
            <div class="module">
                <div class="module-list">
                    <div class="module-items">
                        {maccms:vod num="80" paging="yes" pageurl="vod/show" type="current" order="desc" by="time"}
                        {include file="public/video"}
                        {/maccms:vod}
                    </div>
                </div>
                <div class="module-footer">
                    {include file="public/paging"}
                </div>
                <!-- 分页筛选 -->
                
                <?php if($param['id']==1){?>
                <div class="module module-bg">
                    <div class="module-heading">
                        <h2 class="module-title">热播电影</h2>
                    </div>
                    <div class="module-list module-lines-list">
                        <div class="module-items">
                            {maccms:vod num="8" type="1" order="desc" by="score"}
                            {include file="public/video"}
                            {/maccms:vod}
                        </div>
                    </div>
                </div>
                <?php }else if($param['id']==2){?>
                <div class="module module-bg">
                    <div class="module-heading">
                        <h2 class="module-title">热播连续剧</h2>
                    </div>
                    <div class="module-list module-lines-list">
                        <div class="module-items">
                            {maccms:vod num="8" type="2" order="desc" by="score"}
                            {include file="public/video"}
                            {/maccms:vod}
                        </div>
                    </div>
                </div>
                <?php }else if($param['id']==3){?>
                <div class="module module-bg">
                    <div class="module-heading">
                        <h2 class="module-title">热播综艺</h2>
                    </div>
                    <div class="module-list module-lines-list">
                        <div class="module-items">
                            {maccms:vod num="8" type="3" order="desc" by="score"}
                            {include file="public/video"}
                            {/maccms:vod}
                        </div>
                    </div>
                </div>
                <?php }else if($param['id']==4){?>
                <div class="module module-bg">
                    <div class="module-heading">
                        <h2 class="module-title">热播动漫</h2>
                    </div>
                    <div class="module-list module-lines-list">
                        <div class="module-items">
                            {maccms:vod num="8" type="4" order="desc" by="score"}
                            {include file="public/video"}
                            {/maccms:vod}
                        </div>
                    </div>
                </div>
                <?php }?>
                <!-- 分类页热播 -->
            </div>

        </div>
    </main>
    {include file="public/foot"}
    <script>
        $(".mac_total").text('{$__PAGING__.record_total}');
    </script>
</body>

</html>